/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LoginFormDTO } from '../models/LoginFormDTO';
import type { Result } from '../models/Result';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class UserControllerService {

    /**
     * login
     * @param loginFormDto loginFormDTO
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static loginUsingPost(
loginFormDto: LoginFormDTO,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/user/login',
            body: loginFormDto,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * getMe
     * @returns Result OK
     * @throws ApiError
     */
    public static getMeUsingGet(): CancelablePromise<Result> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/user/me',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
